package com.yzc.mihuyou.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author 易紫诚
 * @since 2022-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Give对象", description="收藏表")
public class Give implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    private Long giveUserid;

    @ApiModelProperty(value = "帖子主键")
    private Integer invitationId;

    @ApiModelProperty(value = "0 未关注 1关注")
    private Integer invtationOre;

    @ApiModelProperty(value = "o点赞 1未点赞")
    private  Integer invtationPrin;

    @ApiModelProperty(value = "状态 1已读  0未读")
    private  boolean state;

    @ApiModelProperty(value = "点赞时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(exist = false,value = "帖子标题")
    private String invitationHeadline;

    @TableField(exist = false,value = "用户")
    private User user;//用户

}